<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('add Purchase')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-purchase-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">art_no：</label>
				<div class="col-sm-8">
					<input id="artNo" name="artNo" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">sku：</label>
				<div class="col-sm-8">
					<input id="sku" name="sku" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Supplier Name：</label>
				<div class="col-sm-8">
					<input id="supplierName" name="supplierName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Amount：</label>
				<div class="col-sm-8">
					<input id="amount" name="amount" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Purchase Value：</label>
				<div class="col-sm-8">
					<input id="purchaseValue" name="purchaseValue" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Freight：</label>
				<div class="col-sm-8">
					<input id="freight" name="freight" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Tax：</label>
				<div class="col-sm-8">
					<input id="tax" name="tax" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Total Value：</label>
				<div class="col-sm-8">
					<input id="totalValue" name="totalValue" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Unit Price：</label>
				<div class="col-sm-8">
					<input id="unitPrice" name="unitPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Order Date：</label>
				<div class="col-sm-8">
					<input id="orderDate" name="orderDate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Arrive Date：</label>
				<div class="col-sm-8">
					<input id="arriveDate" name="arriveDate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Exp Date：</label>
				<div class="col-sm-8">
					<input id="expDate" name="expDate" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/purchase"
		$("#form-purchase-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-purchase-add').serialize());
	        }
	    }
	</script>
</body>
</html>
